<%@ Register TagPrefix="forumsAdmin" TagName="Footer" Src="footer.ascx" %>
<%@ Register TagPrefix="forumsAdmin" TagName="Header" Src="header.ascx" %>
<%@	Page Language="c#" debug="true"	CodeBehind="ManageForums.aspx.cs" AutoEventWireup="false" Inherits="AspNetForums.Admin.ManageForums" %>
<%@	Register TagPrefix="Forums"	Namespace="AspNetForums.Controls" Assembly="AspNetForums.Controls" %>
<%@	Import Namespace="AspNetForums.Components" %>
<%@	Import Namespace="AspNetForums.Enumerations" %>
<%@	Import Namespace="AspNetForums"	%>
<forumsAdmin:Header runat="server" id="Header1" />
		<form runat="server" ID="Form2">
			<span class="forumName"><% = ResourceManager.GetString("ManageForums_Title") %></span>
			<br>
			<span class="forumThread"><% = ResourceManager.GetString("ManageForums_SubTitle") %></span>
			<P>
				<table cellspacing="1" cellpadding="3" Class="tableBorder">
					<TBODY>
						<tr>
							<th class="h1" align="left" colspan="5">
								<% = ResourceManager.GetString("ManageForums_About") %>
							</th>
						</tr>
						<asp:Repeater EnableViewState="false" runat="server" id="forumGroupRepeater">
							<ItemTemplate>
								<tr>
									<td class="fh" width="100%">
										<!--  -->
										<b><a href='<%# Globals.GetSiteUrls().AdminForumGroup( (int)DataBinder.Eval(Container.DataItem, "ForumGroupID")) %>'>
												<%#	DataBinder.Eval(Container.DataItem,	"Name")	%>
											</a></b>
									</td>
									<td class="fh" width="50" nowrap align="center">
										<table cellpadding="0" cellspacing="0" border="0">
											<tr>
												<td class="fh">
													<asp:ImageButton ID="btnMoveForumGroupUp" runat="server"
														CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ForumGroupID") %>' 
														ImageUrl =	'<%# Globals.GetSkinPath() + "/images/up.gif" %>' 
														OnClick="btnMoveForumGroupUp_Click" />
												</td>
											</tr>
											<tr>
												<td class="fh">
													<asp:ImageButton ID="btnMoveForumGroupDown" runat="server"
														CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ForumGroupID") %>' 
														ImageUrl = '<%# Globals.GetSkinPath() + "/images/dn.gif" %>' 
														OnClick="btnMoveForumGroupDown_Click"/>
												</td>
											</tr>
										</table>
									</td>
								</tr>
								<Forums:ForumRepeater Mode="Administrator" ForumGroupID='<%# DataBinder.Eval(Container.DataItem, "ForumGroupID"	) %>' IgnorePermissions="true" runat="server" ID="forumRepeater">
									<ItemTemplate>
										<tr>
											<td class="f" width="100%">
												<table>
													<tr>
														<td>
														</td>
														<td class="txt4">
															<b><a href='<%# Globals.GetSiteUrls().AdminForumEdit( (int)DataBinder.Eval(Container.DataItem, "ForumID")) %>'>
																	<%#	DataBinder.Eval(Container.DataItem,	"Name")	%>
																</a></b>
															<br>
															<%#	DataBinder.Eval(Container.DataItem,	"Description") %>
														</td>
													</tr>
												</table>
											</td>
											<td class="fh" align="center">
												<table cellpadding="0" cellspacing="0" border="0">
													<tr>
														<td class="fh" align="center">
															<asp:ImageButton id="btnMoveForumUp" runat=server 
																CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ForumID") %>' 
																ImageUrl = '<%# Globals.GetSkinPath() + "/images/up.gif" %>' 
																OnClick="btnMoveForumUp_Click" />
														</td>
													</tr>
													<tr>
														<td class="fh" align="center">
															<asp:ImageButton id="btnMoveForumDown" runat=server 
																CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ForumID") %>' 
																ImageUrl = '<%# Globals.GetSkinPath() + "/images/dn.gif" %>' 
																OnClick="btnMoveForumDown_Click" />
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</ItemTemplate>
									<FooterTemplate></FooterTemplate>
								</Forums:ForumRepeater>
								<tr>
									<td class="f" colspan="5">
										<asp:TextBox MaxLength="256" ID="ForumName" Columns="55" Runat="server" />
										<asp:Button	ID="btnCreateNewForum" runat=server
											CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ForumGroupID" ) %>'
											Text='<%# ResourceManager.GetString("ManageForums_CreateNew") %>'
											OnClick="btnCreateNewForum_Click" />
									</td>
								</tr>
							</ItemTemplate>
							<FooterTemplate>
								<tr>
									<td class="f" colspan="5">
										<asp:TextBox MaxLength="256" ID="ForumGropName" Columns="55" Runat="server" />
										<asp:Button runat="server" ID="btnCreateNewForumGroup" 
											Text='<%# ResourceManager.GetString("ManageForums_CreateNewGroup")%>' 
											OnClick="btnCreateNewForumGroup_Click" />
									</td>
								</tr>
				</table>
			</FooterTemplate> </asp:Repeater></TBODY></TABLE>
		</form>
<forumsAdmin:Footer runat="server" id="Footer1" />
